home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2368 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.lang.c
  2. Path: Utrecht.NL.net!news
  3. From: E.H.Terwiel@inter.NL.net (E.H. Terwiel (Erik))
  4. Subject: Re: Procedure for CRC-16 Value for a given tex
  5. X-Nntp-Posting-Host: utr98-17.utrecht.nl.net
  6. Message-ID: <DLI11A.Hun@inter.NL.net>
  7. Sender: news@inter.NL.net (News at newsutr)
  8. Organization: NLnet
  9. X-Newsreader: Forte Free Agent 1.0.82
  10. References: <30f486cf.64849689@news.alt.net> <4dmjgf$bk4@zeppo.mrad.com.au>
  11. Date: Sat, 20 Jan 1996 21:26:34 GMT
  12.  
  13. ray@mrad.com.au (Ray Welchman) wrote:
  14.  
  15.  
  16. >>To anyone with some knowledge of C - programming language. I need a
  17. >>procedure that will compute a CRC-16 value for a given text string.
  18. >>This should receive a text string as input and produce a two byte CRC
  19. >>value as output. The output has to be two data bytes. The carriage
  20. >>return byte is not to be included in the CRC computations. This should
  21. >>be able to read text strings from the terminal, call the procedure,
  22. >>and then print the string and the appropriate CRC value. The output
  23. >>will be the text string that was input and the corresponding CRC
  24. >>value. Then, the CRC value should be converted into a 4 digit Hex
  25. >>value. Any suggestions ???
  26.  
  27. Try Campbell's book on serial communications: it a bible on the
  28. subject and has everything on CRC's.
  29.  
  30. Or maybe SIMTEL or CICA has some.
  31.  
  32. Erik
  33.  
  34.